﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Gasco.DataAccess;

namespace Gasco.Business.Services
{
    public interface IOrderService
    {
        int CountGetOrders();
        IList<order> GetOrders(string keyword, int orderType, int pageSize, int pageNumber, string sortBy, string sortDirection);
        order GetOrderById(int id);
        order CreateOrder(order o);
        void UpdateOrder(order o);
        void DeleteOrder(order o);
        void DeleteOrder(int id);
        IList<order> GetAll();
        IList<order> GetOrdersByPurchaseId(int purchaseOrderId);
        order GetOrderByName(string name);
        order GetOrderByNumber(string number);
        IList<order> AutoCompleteOrder(string name);
        IList<order> AutoCompleteOrderNum(string number);
        IList<contract_type> GetContractTypes();
    }
}
